package com.fzu.normalservice.service;

import com.fzu.commonutil.entity.Company;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzu.commonutil.entity.ServiceType;
import com.fzu.commonutil.util.PageVO;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyq
 * @since 2023-03-26
 */
public interface CompanyService extends IService<Company> {

    /**
     *
     * @return
     */
    List<Company> options(Company company);


    /**
     * 获取公司id-map
     * @param idList
     * @return
     */
    Map<Integer, String> map(Collection<Integer> idList);

    List<Company> list(Company company);
    PageVO page(Company company, Integer pageNum, Integer pageSize);

    /**
     * 增加公司（包括管理员账号）
     * @param company
     */
    void add(Company company);
    Integer getAdminByCompanyName(String companyName);
}
